/*
 * 12枚举.c
 *
 *  Created on: 2024年3月16日
 *      Author: HP
 */
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<time.h>

enum Color {
	red, blue, green, pink, yellow=20, block, white
	// 它们的值:0,1,2,3,20,21,22
};

int main0912(){
	int value;
	scanf("%d", &value);

	//enum Color color;
	switch(value){ // 从0开始
	case red:
		printf("%s\n", "红色");
		break;
	case blue:
		printf("%s\n", "蓝色");
		break;
	case green:
		printf("%s\n", "绿色");
		break;
	case pink:
		printf("%s\n", "粉色");
		break;
	case yellow:
		printf("%s\n", "黄色");
		break;
	case block:
		printf("%s\n", "黑色");
		break;
	case white:
		printf("%s\n", "白色");
		break;
	default:
		printf("%s\n", "错误");
		break;
	}
	return 0;
}
